<script setup lang="ts">
//置顶推荐

import { HomeArray } from "@/store/interface";
import Images from "@/components/block/images.vue";

defineProps<{ data: HomeArray[] }>();
</script>
<template>
  <section class="activities-wrap common-flex-box common-normal-box">
    <figure class="advertise flex-item" v-for="item in data" :key="item.id">
      <Images :img="item.featured_image" />
      <a
        :href="item.link"
        class="ad-click-mask"
        :target="item.type === 'true' ? '_blank' : ''"
      ></a>
    </figure>
  </section>
</template>
<style scoped lang="less">
.activities-wrap {
  width: 100%;
  height: 200px;
}
</style>
